   <ul> 
        {foreach key=index item=category from=$categories} 
            {assign var="current_category_class" value=""} 
            {if $category->get_category_id() eq $category_id} 
                {assign var="current_category_class" value="class='current'"} 
            {/if} 
        <li><a  href="?category_id={$category->get_category_id()}"  
                title="{$category->get_name()}" {$current_category_class} >{$category->get_name()}</a> 
        </li> 
        {/foreach} 
    </ul>

